﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="AddWork.aspx.cs" Inherits="Admin_AddWork" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlace" runat="Server">
    <asp:HiddenField ID="hfID" runat="server" />
    <br />
    <div runat="server" id="pnlImages" style="float:left;">
        <div class="FirstImage">
            <asp:HyperLink ID="img1" runat="server" AlternateText="img1" ImageUrl="~/Content/Galery/img_progect.jpg" />
        </div>
        <div class="SecondImage">
            <asp:HyperLink ID="img2" runat="server" AlternateText="img2" ImageUrl="~/Content/Galery/img_progect.jpg" />
        </div>
        <div class="ThirdImage">
            <asp:HyperLink ID="img3" runat="server" AlternateText="img3" ImageUrl="~/Content/Galery/img_progect.jpg" />
        </div>
    </div>
    </div>
    <div>
        <!-- Tag system area-->
        <asp:UpdatePanel runat="server" ID="updTags">
            <ContentTemplate>
                <asp:Panel runat="server" ID="pnlTags">
                    <div>
                        <asp:Label runat="server" ID="label1" Text="">Тип</asp:Label><br />
                        <asp:DropDownList runat="server" ID="ddTags" DataValueField="ID" DataTextField="TagName">
                        </asp:DropDownList>
                    </div>
                    <asp:DataList runat="server" RepeatDirection="Horizontal" ID="rptTags">
                        <ItemTemplate>
                            <asp:HiddenField runat="server" ID="hfTagID" Value='<%# Eval("KeyID")%>' />
                            <asp:Label ID="Label6" runat="server" Text='<%# Eval("KeyName")%>'></asp:Label>
                            <asp:ImageButton runat="server" ID="imgDelete" CommandArgument='<%# Eval("KeyID")%>'
                                ImageUrl="~/Admin/images/delete.png" OnClick="imgDelete_Click" />
                        </ItemTemplate>
                    </asp:DataList>
                    <br />
                    <asp:Button ID="btnAddTag" runat="server" Text="Добавить новый тег" OnClick="btnAddTag_Click" />
                </asp:Panel>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnAddTag" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:Label runat="server" ID="label4" Text="">Название работы</asp:Label><br />
        <asp:TextBox ID="txtTitle" runat="server" Width="400px"></asp:TextBox><br />
        <asp:Label runat="server" ID="label3" Text="">Краткое описание</asp:Label><br />
        <asp:TextBox ID="txtSubTitle" runat="server" TextMode="MultiLine" Width="400px" Height="100px"></asp:TextBox><br />
        <asp:Label runat="server" ID="label2" Text="">Описание</asp:Label><br />
        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="400px" Height="200px"></asp:TextBox><br />
        <asp:Label runat="server" ID="label5" Text="">Технологии</asp:Label><br />
        <asp:TextBox ID="txtTechnologies" runat="server" Width="400px"></asp:TextBox><br />
        <asp:Label runat="server" ID="label7" Text="">Имя ссылки</asp:Label><br />
        <asp:TextBox ID="txtLinkName" runat="server" Width="400px"></asp:TextBox><br />
        <asp:Label runat="server" ID="label8" Text="">ссылка на сайт</asp:Label><br />
        <asp:TextBox ID="txtLinkUrl" runat="server" Width="400px"></asp:TextBox><br />
         <!-- picture for portfolio page-->
        <asp:FileUpload runat="server" ID="uplThumb" />
        <asp:HiddenField runat="server" ID="hfThumb" Value="img_portfolio.png" />
       <img alt='imgCenter' width="266" height="175" src='../Content/Galery/<%=hfThumb.Value%>'/>
        <asp:Button ID="btnArticleSave" runat="server" Text="Сохранить" OnClick="btnArticleSave_Click" />
    </div>
</asp:Content>
